<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CUdpSocket类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="class_c_udp_socket-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CUdpSocket类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>udp套接口  
 <a href="class_c_udp_socket.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_udp_socket_8h_source.html">UdpSocket.h</a>&gt;</code></p>
<div class="dynheader">
类 CUdpSocket 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_udp_socket.png" usemap="#CUdpSocket_map" alt=""/>
  <map id="CUdpSocket_map" name="CUdpSocket_map">
<area href="class_c_socket.html" title="套接口类" alt="CSocket" shape="rect" coords="0,0,91,24"/>
<area href="class_c_udp_io_socket.html" title="用于udp进行io投递的套接字类" alt="CUdpIoSocket" shape="rect" coords="0,112,91,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9fc6361330d621549ecf5b6431ae6aec"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#a9fc6361330d621549ecf5b6431ae6aec">CUdpSocket</a> ()</td></tr>
<tr class="memdesc:a9fc6361330d621549ecf5b6431ae6aec"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个默认的upd套接字类  <a href="class_c_udp_socket.html#a9fc6361330d621549ecf5b6431ae6aec">更多...</a><br /></td></tr>
<tr class="separator:a9fc6361330d621549ecf5b6431ae6aec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7534e19903201dd7be39029d52488f3e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#a7534e19903201dd7be39029d52488f3e">CUdpSocket</a> (<a class="el" href="class_c_basic_service.html">CBasicService</a> *pServer)</td></tr>
<tr class="memdesc:a7534e19903201dd7be39029d52488f3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个udp套接字类并设置服务类  <a href="class_c_udp_socket.html#a7534e19903201dd7be39029d52488f3e">更多...</a><br /></td></tr>
<tr class="separator:a7534e19903201dd7be39029d52488f3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb84cc7c88f161ac7467dcc0a80b33e0"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#aeb84cc7c88f161ac7467dcc0a80b33e0">~CUdpSocket</a> ()</td></tr>
<tr class="memdesc:aeb84cc7c88f161ac7467dcc0a80b33e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构函数释放资源  <a href="class_c_udp_socket.html#aeb84cc7c88f161ac7467dcc0a80b33e0">更多...</a><br /></td></tr>
<tr class="separator:aeb84cc7c88f161ac7467dcc0a80b33e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8b1ed410724da2c2fa57e0e24ee9160"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#ab8b1ed410724da2c2fa57e0e24ee9160">Socket</a> (<a class="el" href="namespace_s_o_c_k_f_a_m_i_l_y.html#a2752d06098f227dbd8340b30a718da81">SOCKFAMILY::SockFamily</a> domain=<a class="el" href="namespace_s_o_c_k_f_a_m_i_l_y.html#a2752d06098f227dbd8340b30a718da81a00bf55dcef9400794a5918a0fcd59b5d">SOCKFAMILY::IPV4</a>, <a class="el" href="namespace_s_o_c_k_t_y_p_e.html#ab1b532206487defe92ed4eeae94b488c">SOCKTYPE::SockType</a> type=<a class="el" href="namespace_s_o_c_k_t_y_p_e.html#ab1b532206487defe92ed4eeae94b488ca6c4816da2ab72fec5773dc4650d5aa78">SOCKTYPE::DGRAM</a>, <a class="el" href="namespace_s_o_c_k_p_r_o_t_o_c_o_l.html#a6fcb9a12773185f3ca183ad967bb672e">SOCKPROTOCOL::SockProtocol</a> protocol=<a class="el" href="namespace_s_o_c_k_p_r_o_t_o_c_o_l.html#a6fcb9a12773185f3ca183ad967bb672ea58ac0a98fdbaa936244fd01553e71dce">SOCKPROTOCOL::UDP</a>)</td></tr>
<tr class="memdesc:ab8b1ed410724da2c2fa57e0e24ee9160"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化套接字  <a href="class_c_udp_socket.html#ab8b1ed410724da2c2fa57e0e24ee9160">更多...</a><br /></td></tr>
<tr class="separator:ab8b1ed410724da2c2fa57e0e24ee9160"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a301f30c45f6f0c81b1b557ccf222f3e0"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_c_sock_addr.html">CSockAddr</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#a301f30c45f6f0c81b1b557ccf222f3e0">GetRemoteSockaddr</a> () const</td></tr>
<tr class="memdesc:a301f30c45f6f0c81b1b557ccf222f3e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取远程地址结构信息  <a href="class_c_udp_socket.html#a301f30c45f6f0c81b1b557ccf222f3e0">更多...</a><br /></td></tr>
<tr class="separator:a301f30c45f6f0c81b1b557ccf222f3e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ff35999590d434ec2ecd21e7a199789"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#a0ff35999590d434ec2ecd21e7a199789">GetRemoteAddr</a> () const</td></tr>
<tr class="memdesc:a0ff35999590d434ec2ecd21e7a199789"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取远程地址信息  <a href="class_c_udp_socket.html#a0ff35999590d434ec2ecd21e7a199789">更多...</a><br /></td></tr>
<tr class="separator:a0ff35999590d434ec2ecd21e7a199789"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad33886caa477a9495a0d321b134ff857"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#ad33886caa477a9495a0d321b134ff857">GetRemotePort</a> () const</td></tr>
<tr class="memdesc:ad33886caa477a9495a0d321b134ff857"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取远程端口信息  <a href="class_c_udp_socket.html#ad33886caa477a9495a0d321b134ff857">更多...</a><br /></td></tr>
<tr class="separator:ad33886caa477a9495a0d321b134ff857"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c2fbd5b243f8b40d638731548aec11a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#a1c2fbd5b243f8b40d638731548aec11a">SetRemoteAddr</a> (const char *addr)</td></tr>
<tr class="memdesc:a1c2fbd5b243f8b40d638731548aec11a"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置远端地址  <a href="class_c_udp_socket.html#a1c2fbd5b243f8b40d638731548aec11a">更多...</a><br /></td></tr>
<tr class="separator:a1c2fbd5b243f8b40d638731548aec11a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3c2c759a303d3254c171c8373ac416d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#ac3c2c759a303d3254c171c8373ac416d">SetRemotePort</a> (<a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> port)</td></tr>
<tr class="memdesc:ac3c2c759a303d3254c171c8373ac416d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置远端端口  <a href="class_c_udp_socket.html#ac3c2c759a303d3254c171c8373ac416d">更多...</a><br /></td></tr>
<tr class="separator:ac3c2c759a303d3254c171c8373ac416d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8aa3bdb55f59883197053e46ee9583f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#af8aa3bdb55f59883197053e46ee9583f">SetDomain</a> (<a class="el" href="namespace_s_o_c_k_f_a_m_i_l_y.html#a2752d06098f227dbd8340b30a718da81">SOCKFAMILY::SockFamily</a> domain)</td></tr>
<tr class="memdesc:af8aa3bdb55f59883197053e46ee9583f"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置协议族  <a href="class_c_udp_socket.html#af8aa3bdb55f59883197053e46ee9583f">更多...</a><br /></td></tr>
<tr class="separator:af8aa3bdb55f59883197053e46ee9583f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_socket"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_socket')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_socket.html">CSocket</a></td></tr>
<tr class="memitem:ae7e5fd04b90967207cc063a22fa39ab5 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#ae7e5fd04b90967207cc063a22fa39ab5">CSocket</a> ()</td></tr>
<tr class="memdesc:ae7e5fd04b90967207cc063a22fa39ab5 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化构造  <a href="class_c_socket.html#ae7e5fd04b90967207cc063a22fa39ab5">更多...</a><br /></td></tr>
<tr class="separator:ae7e5fd04b90967207cc063a22fa39ab5 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2082b7be3d8862aac61944fa6e7218c9 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a2082b7be3d8862aac61944fa6e7218c9">CSocket</a> (<a class="el" href="class_c_basic_service.html">CBasicService</a> *pServer)</td></tr>
<tr class="memdesc:a2082b7be3d8862aac61944fa6e7218c9 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数并设置操作服务类  <a href="class_c_socket.html#a2082b7be3d8862aac61944fa6e7218c9">更多...</a><br /></td></tr>
<tr class="separator:a2082b7be3d8862aac61944fa6e7218c9 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d4a6cdcea1e66a2591831c15cfbc4fa inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a1d4a6cdcea1e66a2591831c15cfbc4fa">~CSocket</a> ()</td></tr>
<tr class="memdesc:a1d4a6cdcea1e66a2591831c15cfbc4fa inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁函数  <a href="class_c_socket.html#a1d4a6cdcea1e66a2591831c15cfbc4fa">更多...</a><br /></td></tr>
<tr class="separator:a1d4a6cdcea1e66a2591831c15cfbc4fa inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa915ac02c07eed947bf2da35eacc3545 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#aa915ac02c07eed947bf2da35eacc3545">Close</a> ()</td></tr>
<tr class="memdesc:aa915ac02c07eed947bf2da35eacc3545 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭套接字  <a href="class_c_socket.html#aa915ac02c07eed947bf2da35eacc3545">更多...</a><br /></td></tr>
<tr class="separator:aa915ac02c07eed947bf2da35eacc3545 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af24c845946ff5014b8b8d57987459ad7 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#af24c845946ff5014b8b8d57987459ad7">Shutdown</a> (<a class="el" href="namespace_s_d_f_l_a_g_s.html#a61532db7e32f7ef1369fb2e15a035330">SDFLAGS::SdFlags</a> how)</td></tr>
<tr class="separator:af24c845946ff5014b8b8d57987459ad7 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28a714423abdf1a80c07419661923210 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a28a714423abdf1a80c07419661923210">SetSocketOpt</a> (<a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> level, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> optname, const char *optval, socklen_t optlen)</td></tr>
<tr class="memdesc:a28a714423abdf1a80c07419661923210 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置套接口选项  <a href="class_c_socket.html#a28a714423abdf1a80c07419661923210">更多...</a><br /></td></tr>
<tr class="separator:a28a714423abdf1a80c07419661923210 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04810e298bdd8c6ce36c1b3dc76ceb2a inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a04810e298bdd8c6ce36c1b3dc76ceb2a">GetSocketOpt</a> (<a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> level, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> optname, char *optval, socklen_t *optlen) const</td></tr>
<tr class="memdesc:a04810e298bdd8c6ce36c1b3dc76ceb2a inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取套接口选项设置值  <a href="class_c_socket.html#a04810e298bdd8c6ce36c1b3dc76ceb2a">更多...</a><br /></td></tr>
<tr class="separator:a04810e298bdd8c6ce36c1b3dc76ceb2a inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad08fc2df680d1fd84035f5aada97dd3a inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#ad08fc2df680d1fd84035f5aada97dd3a">SetService</a> (<a class="el" href="class_c_basic_service.html">CBasicService</a> *service)</td></tr>
<tr class="memdesc:ad08fc2df680d1fd84035f5aada97dd3a inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">关联相应的工作类  <a href="class_c_socket.html#ad08fc2df680d1fd84035f5aada97dd3a">更多...</a><br /></td></tr>
<tr class="separator:ad08fc2df680d1fd84035f5aada97dd3a inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4639bf4536b44ec11a7fc37b73981c8e inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_basic_service.html">CBasicService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a4639bf4536b44ec11a7fc37b73981c8e">GetService</a> () const</td></tr>
<tr class="memdesc:a4639bf4536b44ec11a7fc37b73981c8e inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回服务基类  <a href="class_c_socket.html#a4639bf4536b44ec11a7fc37b73981c8e">更多...</a><br /></td></tr>
<tr class="separator:a4639bf4536b44ec11a7fc37b73981c8e inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a3ba6f710c1a3ca4f9300dabe84b03f inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="class_c_sock_addr.html">CSockAddr</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a1a3ba6f710c1a3ca4f9300dabe84b03f">GetSockAddr</a> () const</td></tr>
<tr class="memdesc:a1a3ba6f710c1a3ca4f9300dabe84b03f inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">将socket设置的套接口地址参数转换成SOCKADDR_IN结构体  <a href="class_c_socket.html#a1a3ba6f710c1a3ca4f9300dabe84b03f">更多...</a><br /></td></tr>
<tr class="separator:a1a3ba6f710c1a3ca4f9300dabe84b03f inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae96be9f5381ebfb3e22092ad96f972ce inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#ae96be9f5381ebfb3e22092ad96f972ce">SetReuse</a> ()</td></tr>
<tr class="memdesc:ae96be9f5381ebfb3e22092ad96f972ce inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置端口重用  <a href="class_c_socket.html#ae96be9f5381ebfb3e22092ad96f972ce">更多...</a><br /></td></tr>
<tr class="separator:ae96be9f5381ebfb3e22092ad96f972ce inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f8d60c59caa235c4fb603e269166fd4 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a3f8d60c59caa235c4fb603e269166fd4">SetNolock</a> ()</td></tr>
<tr class="memdesc:a3f8d60c59caa235c4fb603e269166fd4 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置非阻塞  <a href="class_c_socket.html#a3f8d60c59caa235c4fb603e269166fd4">更多...</a><br /></td></tr>
<tr class="separator:a3f8d60c59caa235c4fb603e269166fd4 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b06eb532505ae7f3b6c8c17e2460911 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a8b06eb532505ae7f3b6c8c17e2460911">SetLock</a> ()</td></tr>
<tr class="memdesc:a8b06eb532505ae7f3b6c8c17e2460911 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置为阻塞  <a href="class_c_socket.html#a8b06eb532505ae7f3b6c8c17e2460911">更多...</a><br /></td></tr>
<tr class="separator:a8b06eb532505ae7f3b6c8c17e2460911 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a816347ac8821a8288a38645702bee10e inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a816347ac8821a8288a38645702bee10e">Swap</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock)</td></tr>
<tr class="memdesc:a816347ac8821a8288a38645702bee10e inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">交换两个套接口类  <a href="class_c_socket.html#a816347ac8821a8288a38645702bee10e">更多...</a><br /></td></tr>
<tr class="separator:a816347ac8821a8288a38645702bee10e inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfcf493607b9c1b40db907d89731d4a9 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="tools_8h.html#aff55fe551a9992a54ec54621c524d0a4">SOCKET</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#abfcf493607b9c1b40db907d89731d4a9">GetSockPtr</a> () const</td></tr>
<tr class="memdesc:abfcf493607b9c1b40db907d89731d4a9 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取套接口句柄指针  <a href="class_c_socket.html#abfcf493607b9c1b40db907d89731d4a9">更多...</a><br /></td></tr>
<tr class="separator:abfcf493607b9c1b40db907d89731d4a9 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaa6fee02d3a38224445cb42d63d3521 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#afaa6fee02d3a38224445cb42d63d3521">SetAddr</a> (const char *addr)</td></tr>
<tr class="memdesc:afaa6fee02d3a38224445cb42d63d3521 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置远程或本地地址  <a href="class_c_socket.html#afaa6fee02d3a38224445cb42d63d3521">更多...</a><br /></td></tr>
<tr class="separator:afaa6fee02d3a38224445cb42d63d3521 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a112e126a842b4ec30e5d17721ebe73cb inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a112e126a842b4ec30e5d17721ebe73cb">SetPort</a> (<a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> port)</td></tr>
<tr class="memdesc:a112e126a842b4ec30e5d17721ebe73cb inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置远程或本地端口  <a href="class_c_socket.html#a112e126a842b4ec30e5d17721ebe73cb">更多...</a><br /></td></tr>
<tr class="separator:a112e126a842b4ec30e5d17721ebe73cb inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa6d7615fa3799b3b2ddba01f4dcc675 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#aaa6d7615fa3799b3b2ddba01f4dcc675">SetSocket</a> (<a class="el" href="tools_8h.html#aff55fe551a9992a54ec54621c524d0a4">SOCKET</a> sock)</td></tr>
<tr class="memdesc:aaa6d7615fa3799b3b2ddba01f4dcc675 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置套接字描述符  <a href="class_c_socket.html#aaa6d7615fa3799b3b2ddba01f4dcc675">更多...</a><br /></td></tr>
<tr class="separator:aaa6d7615fa3799b3b2ddba01f4dcc675 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0833e2e82bcca3a85057fcecb2287bb inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#ab0833e2e82bcca3a85057fcecb2287bb">SetSockType</a> (<a class="el" href="namespace_s_o_c_k_t_y_p_e.html#ab1b532206487defe92ed4eeae94b488c">SOCKTYPE::SockType</a> type=<a class="el" href="namespace_s_o_c_k_t_y_p_e.html#ab1b532206487defe92ed4eeae94b488ca001599c1c291d81e5145c9aaed42852d">SOCKTYPE::STREAM</a>)</td></tr>
<tr class="memdesc:ab0833e2e82bcca3a85057fcecb2287bb inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置套接字发送类型  <a href="class_c_socket.html#ab0833e2e82bcca3a85057fcecb2287bb">更多...</a><br /></td></tr>
<tr class="separator:ab0833e2e82bcca3a85057fcecb2287bb inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a630790930bc708f198f90181420892a5 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a630790930bc708f198f90181420892a5">SetProtocol</a> (<a class="el" href="namespace_s_o_c_k_p_r_o_t_o_c_o_l.html#a6fcb9a12773185f3ca183ad967bb672e">SOCKPROTOCOL::SockProtocol</a> protocol=<a class="el" href="namespace_s_o_c_k_p_r_o_t_o_c_o_l.html#a6fcb9a12773185f3ca183ad967bb672ea259d0611981249ea03db09636970baa0">SOCKPROTOCOL::TCP</a>)</td></tr>
<tr class="memdesc:a630790930bc708f198f90181420892a5 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置协议类型  <a href="class_c_socket.html#a630790930bc708f198f90181420892a5">更多...</a><br /></td></tr>
<tr class="separator:a630790930bc708f198f90181420892a5 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f9deafc91bedf6c25122fe98e8174d8 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespace_s_o_c_k_f_a_m_i_l_y.html#a2752d06098f227dbd8340b30a718da81">SOCKFAMILY::SockFamily</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a8f9deafc91bedf6c25122fe98e8174d8">GetDomain</a> () const</td></tr>
<tr class="memdesc:a8f9deafc91bedf6c25122fe98e8174d8 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取协议族  <a href="class_c_socket.html#a8f9deafc91bedf6c25122fe98e8174d8">更多...</a><br /></td></tr>
<tr class="separator:a8f9deafc91bedf6c25122fe98e8174d8 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4db9f0924d9173baa17ffef5bfeeaa48 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespace_s_o_c_k_t_y_p_e.html#ab1b532206487defe92ed4eeae94b488c">SOCKTYPE::SockType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a4db9f0924d9173baa17ffef5bfeeaa48">GetSockType</a> () const</td></tr>
<tr class="memdesc:a4db9f0924d9173baa17ffef5bfeeaa48 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取套接字发送类型  <a href="class_c_socket.html#a4db9f0924d9173baa17ffef5bfeeaa48">更多...</a><br /></td></tr>
<tr class="separator:a4db9f0924d9173baa17ffef5bfeeaa48 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3258d90d4a7626508fc8c43e0893b020 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespace_s_o_c_k_p_r_o_t_o_c_o_l.html#a6fcb9a12773185f3ca183ad967bb672e">SOCKPROTOCOL::SockProtocol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a3258d90d4a7626508fc8c43e0893b020">GetProtocol</a> () const</td></tr>
<tr class="memdesc:a3258d90d4a7626508fc8c43e0893b020 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取协议类型  <a href="class_c_socket.html#a3258d90d4a7626508fc8c43e0893b020">更多...</a><br /></td></tr>
<tr class="separator:a3258d90d4a7626508fc8c43e0893b020 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc23006ccfd784a08cbfd2a9c0d3c85e inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#adc23006ccfd784a08cbfd2a9c0d3c85e">GetAddr</a> () const</td></tr>
<tr class="memdesc:adc23006ccfd784a08cbfd2a9c0d3c85e inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取连接或绑定的地址  <a href="class_c_socket.html#adc23006ccfd784a08cbfd2a9c0d3c85e">更多...</a><br /></td></tr>
<tr class="separator:adc23006ccfd784a08cbfd2a9c0d3c85e inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45ff8ef020da674c0e1dfd947d03f18a inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a45ff8ef020da674c0e1dfd947d03f18a">GetPort</a> () const</td></tr>
<tr class="memdesc:a45ff8ef020da674c0e1dfd947d03f18a inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取绑定或连接的端口  <a href="class_c_socket.html#a45ff8ef020da674c0e1dfd947d03f18a">更多...</a><br /></td></tr>
<tr class="separator:a45ff8ef020da674c0e1dfd947d03f18a inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31c4a61d9f5a4b6cbada3894c7d70c66 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a31c4a61d9f5a4b6cbada3894c7d70c66">GetSocketID</a> () const</td></tr>
<tr class="memdesc:a31c4a61d9f5a4b6cbada3894c7d70c66 inherit pub_methods_class_c_socket"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回在服务类里面初始化的一个唯一ID（仅对与之关联的服务类而言）,0表示没有身份ID  <a href="class_c_socket.html#a31c4a61d9f5a4b6cbada3894c7d70c66">更多...</a><br /></td></tr>
<tr class="separator:a31c4a61d9f5a4b6cbada3894c7d70c66 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18f281b53430ae6e741ac65c08ff42e2 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a18f281b53430ae6e741ac65c08ff42e2">_Close</a> ()</td></tr>
<tr class="separator:a18f281b53430ae6e741ac65c08ff42e2 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73320b641e5e5b001bee08048c9b6503 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="struct_sock_data_buffer.html">SockDataBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a73320b641e5e5b001bee08048c9b6503">GetServiceBuffer</a> () const</td></tr>
<tr class="separator:a73320b641e5e5b001bee08048c9b6503 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ae50c5de21c05ad5cc2f5fd7a583e35 inherit pub_methods_class_c_socket"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="struct_socket_data.html">SocketData</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a8ae50c5de21c05ad5cc2f5fd7a583e35">GetSocketData</a> ()</td></tr>
<tr class="separator:a8ae50c5de21c05ad5cc2f5fd7a583e35 inherit pub_methods_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a9c01deefea11a4b5f8e9f8a22f65dcea"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#a9c01deefea11a4b5f8e9f8a22f65dcea">_Init</a> ()</td></tr>
<tr class="separator:a9c01deefea11a4b5f8e9f8a22f65dcea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:af350da814ebde5f00574e77181c221a7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_socket.html#af350da814ebde5f00574e77181c221a7">delete_class_copy_operator</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a>)</td></tr>
<tr class="separator:af350da814ebde5f00574e77181c221a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pro_attribs_class_c_socket"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_c_socket')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="class_c_socket.html">CSocket</a></td></tr>
<tr class="memitem:a16e8377c836739648ebd6df427232fa8 inherit pro_attribs_class_c_socket"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="struct_socket_data.html">SocketData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_socket.html#a16e8377c836739648ebd6df427232fa8">_sockData</a></td></tr>
<tr class="separator:a16e8377c836739648ebd6df427232fa8 inherit pro_attribs_class_c_socket"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>udp套接口 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8h_source.html">UdpSocket.h</a> 第 <a class="el" href="_udp_socket_8h_source.html#l00010">10</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a9fc6361330d621549ecf5b6431ae6aec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fc6361330d621549ecf5b6431ae6aec">&#9670;&nbsp;</a></span>CUdpSocket() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> CUdpSocket::CUdpSocket </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造一个默认的upd套接字类 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00006">6</a> 行定义.</p>

</div>
</div>
<a id="a7534e19903201dd7be39029d52488f3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7534e19903201dd7be39029d52488f3e">&#9670;&nbsp;</a></span>CUdpSocket() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CUdpSocket::CUdpSocket </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_basic_service.html">CBasicService</a> *&#160;</td>
          <td class="paramname"><em>pServer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造一个udp套接字类并设置服务类 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00011">11</a> 行定义.</p>

</div>
</div>
<a id="aeb84cc7c88f161ac7467dcc0a80b33e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb84cc7c88f161ac7467dcc0a80b33e0">&#9670;&nbsp;</a></span>~CUdpSocket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpSocket::~CUdpSocket </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>析构函数释放资源 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a9c01deefea11a4b5f8e9f8a22f65dcea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c01deefea11a4b5f8e9f8a22f65dcea">&#9670;&nbsp;</a></span>_Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpSocket::_Init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重载 <a class="el" href="class_c_socket.html#a9e20040ed4c3544a493fd537489b4dd1">CSocket</a> .</p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00041">41</a> 行定义.</p>

</div>
</div>
<a id="af350da814ebde5f00574e77181c221a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af350da814ebde5f00574e77181c221a7">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpSocket::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a0ff35999590d434ec2ecd21e7a199789"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ff35999590d434ec2ecd21e7a199789">&#9670;&nbsp;</a></span>GetRemoteAddr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string CUdpSocket::GetRemoteAddr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取远程地址信息 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00053">53</a> 行定义.</p>

</div>
</div>
<a id="ad33886caa477a9495a0d321b134ff857"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad33886caa477a9495a0d321b134ff857">&#9670;&nbsp;</a></span>GetRemotePort()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> CUdpSocket::GetRemotePort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取远程端口信息 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00061">61</a> 行定义.</p>

</div>
</div>
<a id="a301f30c45f6f0c81b1b557ccf222f3e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a301f30c45f6f0c81b1b557ccf222f3e0">&#9670;&nbsp;</a></span>GetRemoteSockaddr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_c_sock_addr.html">CSockAddr</a> &amp; CUdpSocket::GetRemoteSockaddr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取远程地址结构信息 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00066">66</a> 行定义.</p>

</div>
</div>
<a id="af8aa3bdb55f59883197053e46ee9583f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8aa3bdb55f59883197053e46ee9583f">&#9670;&nbsp;</a></span>SetDomain()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpSocket::SetDomain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_s_o_c_k_f_a_m_i_l_y.html#a2752d06098f227dbd8340b30a718da81">SOCKFAMILY::SockFamily</a>&#160;</td>
          <td class="paramname"><em>domain</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置协议族 </p>

<p>重载 <a class="el" href="class_c_socket.html#aafc3fc3ab0c1e3d5ae2cf9dfba46d442">CSocket</a> .</p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00087">87</a> 行定义.</p>

</div>
</div>
<a id="a1c2fbd5b243f8b40d638731548aec11a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c2fbd5b243f8b40d638731548aec11a">&#9670;&nbsp;</a></span>SetRemoteAddr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpSocket::SetRemoteAddr </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置远端地址 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00077">77</a> 行定义.</p>

</div>
</div>
<a id="ac3c2c759a303d3254c171c8373ac416d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3c2c759a303d3254c171c8373ac416d">&#9670;&nbsp;</a></span>SetRemotePort()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpSocket::SetRemotePort </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>port</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置远端端口 </p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00082">82</a> 行定义.</p>

</div>
</div>
<a id="ab8b1ed410724da2c2fa57e0e24ee9160"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8b1ed410724da2c2fa57e0e24ee9160">&#9670;&nbsp;</a></span>Socket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> CUdpSocket::Socket </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_s_o_c_k_f_a_m_i_l_y.html#a2752d06098f227dbd8340b30a718da81">SOCKFAMILY::SockFamily</a>&#160;</td>
          <td class="paramname"><em>domain</em> = <code><a class="el" href="namespace_s_o_c_k_f_a_m_i_l_y.html#a2752d06098f227dbd8340b30a718da81a00bf55dcef9400794a5918a0fcd59b5d">SOCKFAMILY::IPV4</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_s_o_c_k_t_y_p_e.html#ab1b532206487defe92ed4eeae94b488c">SOCKTYPE::SockType</a>&#160;</td>
          <td class="paramname"><em>type</em> = <code><a class="el" href="namespace_s_o_c_k_t_y_p_e.html#ab1b532206487defe92ed4eeae94b488ca6c4816da2ab72fec5773dc4650d5aa78">SOCKTYPE::DGRAM</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_s_o_c_k_p_r_o_t_o_c_o_l.html#a6fcb9a12773185f3ca183ad967bb672e">SOCKPROTOCOL::SockProtocol</a>&#160;</td>
          <td class="paramname"><em>protocol</em> = <code><a class="el" href="namespace_s_o_c_k_p_r_o_t_o_c_o_l.html#a6fcb9a12773185f3ca183ad967bb672ea58ac0a98fdbaa936244fd01553e71dce">SOCKPROTOCOL::UDP</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化套接字 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">domain</td><td>协议族 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="namespace_s_o_c_k_f_a_m_i_l_y.html#a2752d06098f227dbd8340b30a718da81">SOCKFAMILY::SockFamily</a> </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>套接字类型 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="namespace_s_o_c_k_t_y_p_e.html#ab1b532206487defe92ed4eeae94b488c">SOCKTYPE::SockType</a> </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">protocol</td><td>传输协议 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="namespace_s_o_c_k_p_r_o_t_o_c_o_l.html#a6fcb9a12773185f3ca183ad967bb672e">SOCKPROTOCOL::SockProtocol</a> </dd></dl>
<dl class="section return"><dt>返回</dt><dd>成功返回SUCC，失败返回false </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>注意重置domain值将会清空地址、端口信息 </dd></dl>

<p>重载 <a class="el" href="class_c_socket.html#af4c2b2c6e3696ba11c605ee6fead1736">CSocket</a> .</p>

<p class="definition">在文件 <a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a> 第 <a class="el" href="_udp_socket_8cpp_source.html#l00071">71</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_udp_socket_8h_source.html">UdpSocket.h</a></li>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_udp_socket_8cpp_source.html">UdpSocket.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
